package test4;

public class Penguin extends Pet {
    private String sex;

    public Penguin(String sex
    ) {
        this.sex = sex
        ;
    }

    public Penguin(String name, int health, int love, String sex) {
        super(name, health, love);
        this.sex = sex;
    }

    public String getsex() {
        return sex;
    }

    public void setsex(String sex) {
        this.sex = sex;
    }

    public Penguin() {
        super();
    }

    public Penguin(String name, int health, int love) {
        super(name, health, love);
    }

    @Override
    void eat() {
        System.out.println("给企鹅吃");
    }

    @Override
    void show() {
        System.out.println("宠物"+name+"的自白："+"\n我的名字叫" + name +
                ", 我的健康值为：：" + health +
                ", 我和主人的亲密度为：" + love +
                "\n我的性别是" + sex);
    }
}
